/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bash.compta.data;

/**
 *
 * @author bash
 */
public final class CreditLevel {

    public final static int SUPER = -1;
    public final static int ADMIN = 0;
    public final static int DEPENSE_USER = 1;
    public final static int COMPTA_USER = 2;
    public final static int REPORT_USER = 3;

    public static String getLibelle(int credit) {

        String lib = "";
        switch (credit) {
            case -1:
                lib = "SUPER";
                break;
            case 0:
                lib = "ADMIN" + "";
                break;
            case 1:
                lib = "DEPENSE_USER" + "";
                break;
            case 2:
                lib = "COMPTA_USER" + "";
                break;
            case 3:
                lib = "REPORT_USER" + "";
            default:
                lib = "";
        }

        return lib;
    }
}
